<?php

namespace app\admin\validate;

use think\Validate;

class Role extends Validate
{
    protected $rule = [
        'name' => 'require|unique:role',
        'status' => 'require',
    ];

    protected $message = [
        'name.require' => '请输入角色名',
        'name.unique' => '角色名已存在',
        'status.require' => '请选择状态'
    ];
}